package com.kkb.robotcustomerservice.service;

import com.github.pagehelper.PageInfo;
import com.kkb.robotcustomerservice.entities.KnowledgeBase;
import com.kkb.robotcustomerservice.util.User;

import java.util.List;

public interface KnowledgeBaseService {
    KnowledgeBase getById(Integer id);

    PageInfo<KnowledgeBase> findPage(Integer page, Integer rows, User user);

    Integer deleteAll(String createUser,String createSort);

    Integer deleteById(Integer qId);

    int insertList(List<KnowledgeBase> list,User user);

    int updateById(KnowledgeBase knowledgeBase);

    Integer insertOne(KnowledgeBase knowledgeBase);
}
